834dfce3fede85202c099eef5b068819368569d5,platform/lang-impl/src/com/intellij/formatting/IndentInfo.java,IndentInfo,generateLineWhitespace,#StringBuffer#CommonCodeStyleSettings.IndentOptions#number#number#boolean#,93
Before Change
if (options.SMART_TABS) {
int tabCount = indentSpaces / options.TAB_SIZE;
int leftSpaces = indentSpaces - tabCount * options.TAB_SIZE;
if (tabCount > 0) {
StringUtil.repeatSymbol(buffer, '\t', tabCount);
}
if (leftSpaces + alignmentSpaces > 0) {
StringUtil.repeatSymbol(buffer, ' ', leftSpaces + alignmentSpaces);
After Change
}
private static void generateLineWhitespace(@NotNull StringBuffer buffer,
@NotNull CommonCodeStyleSettings.IndentOptions options,
int indentSpaces,
int alignmentSpaces,
boolean tabsAllowed) {
if (options.USE_TAB_CHARACTER && tabsAllowed) {
if (options.SMART_TABS) {
int tabCount = indentSpaces / options.TAB_SIZE;
int leftSpaces = indentSpaces - tabCount * options.TAB_SIZE;
StringUtil.repeatSymbol(buffer, '\t', tabCount);
StringUtil.repeatSymbol(buffer, ' ', leftSpaces + alignmentSpaces);
}
else {